package com.ruoyi.gxs.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.gxs.mapper.GxsParenttypeMapper;
import com.ruoyi.gxs.domain.GxsParenttype;
import com.ruoyi.gxs.service.IGxsParenttypeService;

/**
 * 扣分父类型Service业务层处理
 * 
 * @author 高晓松
 * @date 2023-12-27
 */
@Service
public class GxsParenttypeServiceImpl implements IGxsParenttypeService 
{
    @Autowired
    private GxsParenttypeMapper gxsParenttypeMapper;

    /**
     * 查询扣分父类型
     * 
     * @param gxsParenttypeId 扣分父类型主键
     * @return 扣分父类型
     */
    @Override
    public GxsParenttype selectGxsParenttypeByGxsParenttypeId(Long gxsParenttypeId)
    {
        return gxsParenttypeMapper.selectGxsParenttypeByGxsParenttypeId(gxsParenttypeId);
    }

    /**
     * 查询扣分父类型列表
     * 
     * @param gxsParenttype 扣分父类型
     * @return 扣分父类型
     */
    @Override
    public List<GxsParenttype> selectGxsParenttypeList(GxsParenttype gxsParenttype)
    {
        return gxsParenttypeMapper.selectGxsParenttypeList(gxsParenttype);
    }

    /**
     * 新增扣分父类型
     * 
     * @param gxsParenttype 扣分父类型
     * @return 结果
     */
    @Override
    public int insertGxsParenttype(GxsParenttype gxsParenttype)
    {
        return gxsParenttypeMapper.insertGxsParenttype(gxsParenttype);
    }

    /**
     * 修改扣分父类型
     * 
     * @param gxsParenttype 扣分父类型
     * @return 结果
     */
    @Override
    public int updateGxsParenttype(GxsParenttype gxsParenttype)
    {
        return gxsParenttypeMapper.updateGxsParenttype(gxsParenttype);
    }

    /**
     * 批量删除扣分父类型
     * 
     * @param gxsParenttypeIds 需要删除的扣分父类型主键
     * @return 结果
     */
    @Override
    public int deleteGxsParenttypeByGxsParenttypeIds(Long[] gxsParenttypeIds)
    {
        return gxsParenttypeMapper.deleteGxsParenttypeByGxsParenttypeIds(gxsParenttypeIds);
    }

    /**
     * 删除扣分父类型信息
     * 
     * @param gxsParenttypeId 扣分父类型主键
     * @return 结果
     */
    @Override
    public int deleteGxsParenttypeByGxsParenttypeId(Long gxsParenttypeId)
    {
        return gxsParenttypeMapper.deleteGxsParenttypeByGxsParenttypeId(gxsParenttypeId);
    }
}
